import Login from "@/views/base/login.vue";
import Layout from "../layout/index.vue";
import NotFound from "../views/base/404.vue";
export const routesDefault = [
  {
    name: "Login",
    path: "/login",
    component: Login,
  },
  {
    name: "Layout",
    path: "/Layout",
    component: Layout,
    children: [
      // {
      //   name: "NotFound",
      //   path: "/404",
      //   component: NotFound,
      //   meta: {
      //     title: "404",
      //     autoDestroyTab: true,
      //   },
      // },
    ],
  },
  {
    name: "NotFound",
    path: "/404",
    component: NotFound,
  },

  // {
  //   name: "Demo",
  //   path: "/demo",
  //   component: demo,
  // },
];

// 要后置注入
export const Route404 = {
  name: "Route404",
  path: "/:pathMatch(.*)*",
  // redirect: "/404",
  component: NotFound,
};
